package com.example.demo.service;

import com.example.demo.entity.UserInfo;
import com.example.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author vivi
 * @description
 * @date 2024/5/27
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public UserInfo getUserInfo(Integer id) {
        return userMapper.getUserById(id);
    }
}























